#include<stdio.h>
#include<unistd.h>
#include<sys/stat.h>
#include<fcntl.h>

int main(int argc, char*argv[])
{
//Producer Code
  int fd;
  char * fname = "/dev/scullBuffer0";
  char *buf;
  buf = argv[1];
  
  fd = open(fname,O_WRONLY);
  write(fd,buf,512);
  printf("%s\n",buf);
}
